package com.yzion.baselib.http

/**
 * 定义了响应体的基本元素，响应的实体基类请继承该接口
 * 项目中定义响应体基类：
 */
/*
示例代码
abstract class ApiResponse<T> : BaseResponse<T> {

    @SerializedName("code")
    var code: String? = null

    @SerializedName("message")
    var message: String? = null

    @SerializedName("data")
    var data: T? = null

    override fun code() = code

    override fun data() = data

    override fun message() = message
}
*/
interface BaseResponse<T> {
    fun message(): String?
    fun code(): String?
    fun data(): T?
}


